import {useHistory,useLocation,useRouteMatch} from 'react-router-dom'
function B(){
    let history = useHistory(),
        location = useLocation(),
        match = useRouteMatch();
    console.log(history);
    console.log(location);
    console.log(match);
    return <div>
        B组件
    </div>
}
export default B